package com.tour.modules.web.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tour.modules.web.dao.TInfoDao;
import com.tour.modules.web.entity.TInfoEntity;
import com.tour.modules.web.service.TInfoService;
import com.tour.modules.web.vo.TInfovVo;

@Service("tInfoService")
public class TInfoServiceImpl implements TInfoService {
	@Autowired
	private TInfoDao tInfoDao;

	@Override
	public TInfoEntity queryObject(Long id) {
		return tInfoDao.queryObject(id);
	}

	@Override
	public List<TInfoEntity> queryList(Map<String, Object> map) {
		return tInfoDao.queryList(map);
	}

	@Override
	public List<TInfoEntity> queryListByCategory(Long tCategoryId) { return tInfoDao.queryListByCategory(tCategoryId); }

	@Override
	public List<TInfoEntity> queryListByCityId(Long cityId) { return tInfoDao.queryListByCityId(cityId); }

	@Override
	public int queryTotal(Map<String, Object> map) {
		return tInfoDao.queryTotal(map);
	}

	@Override
	public void save(TInfoEntity tInfo) {
		tInfoDao.save(tInfo);
	}

	@Override
	public void update(TInfoEntity tInfo) {
		tInfoDao.update(tInfo);
	}

	@Override
	public void delete(Long id) {
		tInfoDao.delete(id);
	}

	@Override
	public void deleteBatch(Long[] ids) {
		tInfoDao.deleteBatch(ids);
	}

	@Override
	public List<TInfovVo> queryListAll(Map<String, Object> params) {

		return tInfoDao.queryListAll(params);
	}

}
